package com.Exception;

import java.util.Scanner;

public class Demo02 {
    public static void main(String[] args) {
      String []arr={"星期一","星期二","星期三","星期四","星期五","星期六","星期七"};
        Scanner sc = new Scanner(System.in);
        System.out.println("请你输入一个1->7整数:");
        int a=sc.nextInt();
        try {
                System.out.println(arr[a-1]);
        } catch (Exception e) {
            System.out.println("你输入的有误");
        }
    }
}
